﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace QianBuo.Lottery.Web.Areas.Manage.Models.Login
{
    public class LoginModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "请输入用户名")]
        [RegularExpression(@"^.{4,15}$", ErrorMessage = "格式不正确")]
        [DisplayName("用户名:")]
        public string LoginName
        { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "请输入密码")]
        [RegularExpression(@"^.{6,15}$", ErrorMessage = "格式不正确")]
        [DisplayName("密码:")]
        [DataType(DataType.Password)]
        public string LoginPwd
        { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "请输入验证码")]
        [DisplayName("验证码:")]
        public string CheckCode
        { get; set; }
    }
}